package com.design03_behavioral.pattern20_memento.example01;

/**
 * @ClassName 备忘录对象
 * 访问权限为: 默认,也就是同包下可见(保证只有发起者类可以访问备忘录类)
 * @Description TODO
 * @Author 22963
 * @DATE 2023/9/10 12:30
 */
public class Memento {

    private String state = "从备份对象恢复为原始对象";
    private String id;
    private String name;
    private String phone;

    public Memento() {
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Memento(String id, String name, String phone) {
        this.id = id;
        this.name = name;
        this.phone = phone;
    }

}
